package com.lu.dao;


import com.lu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface Userdao {

    @Select("select * from t_user")
    public List<User> findall();


    @Select("Select * from t_user where id = ${id}")
    public User findById(Integer id);
}
